﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using DWF.Studio.V8Communicator.Messages.Debugger;
using Newtonsoft.Json;

namespace DWF.Studio.V8Communicator.Messages.Runtime
{
    public class CallFrame
    {
        [JsonProperty("callFrameId")]
        public string CallFrameId { get; set; }

        [JsonProperty("functionName")]
        public string FunctionName { get; set; }

        [JsonProperty("functionLocation")]
        public Location FunctionLocation { set; get; }

        [JsonProperty("location")]
        public Location Location { set; get; }

        [JsonProperty("scopeChain")]
        public Scope[] ScopeChain { get; set; }

        [JsonProperty("returnValue")]
        public RemoteObject ReturnValue { get; set; }
    }
}